Include errno.h; don't include fasync.h.
authorRichard M. Stallman <rms@gnu.org>
Wed, 19 Jan 1994 15:12:34 +0000 (15:12 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 19 Jan 1994 15:12:34 +0000 (15:12 +0000)
commitf8998fa90c9a923585ca4ab728fc40e9dda93188
treee3e792e321068af9945e179b5ea4619ddca1f6e4
parentdfb8966419ebc8813cc1e4f3b579a3651b1ecc59
Include errno.h; don't include fasync.h.
(schedule): Don't return a value.
(sigcatch): Reestablish the handler first.
(getevent): Always call notify at the end.
(notify): Defer alarms around the whole body of function.

(main): Don't request SIGIO, and don't handle it.
Loop calling getevent.
(sigcatch): Delete code to handle SIGIO.
If defer_alarms is set, don't call notify, just set alarm_deferred.
(getevent): Use read, not getchar.  Handle EINTR and EAGAIN.
Set defer_alarms around realloc and schedule.
If alarm_deferred gets set, call notify.
Likewise if this event is the only pending event.
Make buf and buf_size global variables.
Don't malloc buf if it is already non-zero.
(schedule): Just exit if run out of memory.
Return the number of events.
(signal) [_CX_UX]: Add #undef.
lib-src/timer.c